import request from '@/utils/request';

export function getList(data) {
  return request({
    url: '/scheduleJob/list',
    method: 'post',
    data,
  });
}

//插入
export function add(data) {
  return request({
    url: '/scheduleJob/add',
    method: 'POST',
    data: data,
  });
}

//更新数据状态
export function update(data) {
  return request({
    url: '/scheduleJob/update',
    method: 'POST',
    data: data,
  });
}

//删除
export function deleteJob(data) {
  return request({
    url: '/scheduleJob/delete',
    method: 'POST',
    data: data,
  });
}

export function run(data) {
  return request({
    url: '/scheduleJob/run',
    method: 'POST',
    data: data,
  });
}

export function pause(data) {
  return request({
    url: '/scheduleJob/pause',
    method: 'POST',
    data: data,
  });
}

export function resume(data) {
  return request({
    url: '/scheduleJob/resume',
    method: 'POST',
    data: data,
  });
}
